//
//  Tijiao.m
//  WeiDuYY
//
//  Created by 张继良 on 2019/1/28.
//  Copyright © 2019 W ke杨. All rights reserved.
//

#import "Tijiao.h"
#import <SDAutoLayout.h>
#import "Yijianfankui.h"


@interface Tijiao ()

@end

@implementation Tijiao

- (void)viewDidLoad {
    [super viewDidLoad];
    //主界面颜色
    self.view.backgroundColor = [UIColor whiteColor];
    //方法
    [self setNav];
    [self setNab];
}

-(void)setNab{
    //文字
    UILabel * lb1 = [[UILabel alloc]init];
    //添加
    [self.view addSubview:lb1];
    lb1.sd_layout.leftSpaceToView(self.view, 30).topSpaceToView(self.view, 40).widthIs(120).heightIs(40);
    lb1.text = @"意见反馈";
    //初始化图片
    UIImageView * imgA = [[UIImageView alloc]init];
    //添加图片
    [self.view addSubview:imgA];
    imgA.sd_layout.leftSpaceToView(self.view, 150).topSpaceToView(self.view, 150).widthIs(100).heightIs(100);
    imgA.image = [UIImage imageNamed:@"fankuichenggong.png"];
    //文字
    UILabel * lb2 = [[UILabel alloc]init];
    //添加
    [self.view addSubview:lb2];
    lb2.sd_layout.leftSpaceToView(self.view, 160).topSpaceToView(self.view, 240).widthIs(120).heightIs(40);
    lb2.text = @"反馈成功";
    //添加
    [self.view addSubview:lb2];
    lb2.sd_layout.leftSpaceToView(self.view, 70).topSpaceToView(self.view, 280).widthIs(280).heightIs(80);
    lb2.numberOfLines = 0;
    lb2.text = @"感谢您对维度影院的关注与支持,我们还认真处理您的反馈,尽快修复和完善相关功能";
    
   
    
}

-(void)setNav{
    //按钮
    UIButton *btn1 = [[UIButton alloc] init];
    //添加
    [self.view addSubview:btn1];
    btn1.sd_layout.leftSpaceToView(self.view, 20).topSpaceToView(self.view, 650).widthIs(60).heightIs(60);
    [btn1 setImage:[UIImage imageNamed:@"com_icon_my_default_hdpi"] forState:UIControlStateNormal];
    [btn1 addTarget:self action:@selector(BtnAA) forControlEvents:UIControlEventTouchUpInside];
    
}
-(void)BtnAA{
    Yijianfankui * yijianfankui = [[Yijianfankui alloc]init];
    [self.navigationController popViewControllerAnimated:YES];
}

@end
